<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<link href="bootstrap/bootstrap.min.css" rel="stylesheet">

	<title>首页</title>
</head>
<body>

	<input type="button" value="发送ajax get请求" id="btnGet"/>
	<input type="button" value="发送ajax del请求" id="btnDel"/>
	<script src="js/jquery.min.js"></script>
	<script src="bootstrap/bootstrap.min.js"></script>
	
	<script type="text/javascript">
	
		$(function() {
			$('#btnGet').click(function() {
				$.ajax({
					url: "http://localhost:8888/ssm/post/115",
					method: 'get',
					success: function(result) {
						console.log(result);
					}
				});
			});
			$('#btnDel').click(function(){
				$.ajax({
					url:"http://localhost:8888/ssm/post/115",
					method:'delete',

				})
			});
		});
	</script>
</body>
</html>